home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Virushunter / Xtruder / Install < prev    next >
Text File  |  1996-09-26  |  5KB  |  270 lines

  1. ; *******************************************************************
  2. ;
  3. ; $VER: Install_Xtruder 2.4 (4.3.96)
  4. ; Install script for Xtruder copyright © 1995-1996 Martin Wulffeld
  5. ;
  6. ; *******************************************************************
  7.  
  8. (set old_level @user-level)
  9. (set @default-dest "")
  10.  
  11. (set default_lang 2)
  12.  
  13. (set #bad-kick
  14. (cat "You must at least have Kickstart 2.04 to install Xtruder!"
  15. ))
  16.  
  17. (set #copying-bootblock        "\nCopying Bootblock.library 3.1 to LIBS:...")
  18. (set #copying-bootblockbb    "\nCopying Bootblock.brainfile to L:...")
  19. (set #copying-fileid        "\nCopying FileID.library 7.0 to LIBS:...")
  20. (set #copying-filevirus        "\nCopying filevirus.library 2.6 to LIBS:...")
  21. (set #copying-reqtoools        "\nCopying reqtools.library 38.1296 to LIBS:...")
  22. (set #copying-unpack        "\nCopying unpack.library 42.71 to LIBS:...")
  23. (set #copying-xfdlib        "\nCopying xfdmaster.library 36.4 to LIBS:...")
  24. (set #copying-xtruderlib    "\nCopying xtruder.library 37.2 to LIBS:...")
  25. (set #copying-xtruderexe    "\nCopying Xtruder executable...")
  26. (set #copying-documentation    "\nCopying Xtruder documentation...")
  27. (set #copying-catalogs        "\nCopying catalogs...")
  28. (set #copying-rexxscripts    "\nCopying rexx scripts...")
  29. (set #creating-xfd            "\nCreating directory\n\nLIBS:xfd\n\nfor external decrunchers...")
  30. (set #copying-xfdfiles        "\nCopying external decrunchers\nfor xfdmaster.library...")
  31. (set #select-dest            "Please select the path where you want to install Xtruder. A drawer named Xtruder will be created there.")
  32. (set #select-destguide        "Please select the path where you want to install the Xtruder documentation. It has already been installed along with the main program.")
  33. (set #select-destrexx        "Please select the path where you want to install the Rexx scripts. A drawer named Xtruder will be created there.")
  34. (set #select-language       "Which languages should be installed?")
  35.  
  36. ;=============================================================================
  37. ; Make sure we are running under a 2.04 ROM
  38.  
  39. (if (< (/ (getversion) 65536) 37)
  40. (
  41.     (abort #bad-kick)
  42. ))
  43.  
  44. ;=============================================================================
  45.  
  46. ;*** Required libraries
  47.  
  48. (copylib
  49.     (prompt #copying-bootblock)
  50.     (help @copylib-help)
  51.     (source "Libs/Bootblock.library")
  52.     (dest "LIBS:")
  53.     (confirm)
  54. )
  55.  
  56. (copylib
  57.     (prompt #copying-bootblockbb)
  58.     (help @copylib-help)
  59.     (source "L/Bootblock.brainfile")
  60.     (dest "L:")
  61.     (confirm)
  62. )
  63.  
  64. (copylib
  65.     (prompt #copying-fileid)
  66.     (help @copylib-help)
  67.     (source "Libs/FileID.library")
  68.     (dest "LIBS:")
  69.     (confirm)
  70. )
  71.  
  72. (copylib
  73.     (prompt #copying-filevirus)
  74.     (help @copylib-help)
  75.     (source "Libs/filevirus.library")
  76.     (dest "LIBS:")
  77.     (confirm)
  78. )
  79.  
  80. (copylib
  81.     (prompt #copying-reqtools)
  82.     (help @copylib-help)
  83.     (source "Libs/reqtools.library")
  84.     (dest "LIBS:")
  85.     (confirm)
  86. )
  87.  
  88. (copylib
  89.     (prompt #copying-unpack)
  90.     (help @copylib-help)
  91.     (source "Libs/unpack.library")
  92.     (dest "LIBS:")
  93.     (confirm)
  94. )
  95.  
  96. (copylib
  97.     (prompt #copying-xfdlib)
  98.     (help @copylib-help)
  99.     (source "Libs/xfdmaster.library")
  100.     (dest "LIBS:")
  101.     (confirm)
  102. )
  103.  
  104. (copylib
  105.     (prompt #copying-xtruderlib)
  106.     (help @copylib-help)
  107.     (source "Libs/xtruder.library")
  108.     (dest "LIBS:")
  109.     (confirm)
  110. )
  111.  
  112. (set xfdokay
  113.     (makedir "LIBS:xfd"
  114.         (prompt #creating-xfd)
  115.         (help @makedir-help)
  116.         (confirm)
  117.     )
  118. )
  119.  
  120. (if xfdokay
  121.     (copyfiles
  122.         (prompt #copying-xfdfiles)
  123.         (help @copyfiles-help)
  124.         (source "Libs/xfd")
  125.         (pattern "#?")
  126.         (dest "LIBS:xfd/")
  127.         (confirm)
  128.     )
  129. )
  130.  
  131. ;*** Xtruder executable
  132.  
  133. (set programdir
  134.     (tackon
  135.         (askdir
  136.             (prompt #select-dest)
  137.             (help @askdir-help)
  138.             (default "SYS:")
  139.             (newpath)
  140.         )
  141.         "Xtruder"
  142.     )
  143. )
  144.  
  145. (set @default-dest programdir)
  146.  
  147. (copyfiles
  148.     (prompt #copying-xtruderexe)
  149.     (source "Xtruder")
  150.     (dest programdir)
  151.     (infos)
  152. )
  153.  
  154. ;*** Copy Catalogs to Xtruder dir for backup
  155.  
  156. (copyfiles
  157.     (prompt #copying-catalogs)
  158.     (source "")
  159.     (dest programdir)
  160.     (pattern "Catalogs#?")
  161. )
  162.  
  163. ;*** Copy registration files
  164.  
  165. (copyfiles
  166.     (prompt #copying-regfiles)
  167.     (source "")
  168.     (dest programdir)
  169.     (pattern "Registration#?")
  170. )
  171.  
  172. ;*** Documentation files
  173.  
  174. ; Backup
  175.  
  176. (copyfiles
  177.     (prompt #copying-documentation)
  178.     (source "")
  179.     (dest programdir)
  180.     (pattern "Documentation#?")
  181. )
  182.  
  183. ; Ask if documentation should be installed elsewhere
  184.  
  185. (set tempdocdir
  186.     (tackon
  187.         programdir
  188.         "Documentation"
  189.     )
  190. )
  191.  
  192. (set docdir
  193.     (askdir
  194.         (prompt #select-destguide)
  195.         (help @askdir-help)
  196.         (default tempdocdir)
  197.         (newpath)
  198.     )
  199. )
  200.  
  201. (copyfiles
  202.     (prompt #copying-documentation)
  203.     (source "Documentation/Xtruder.guide")
  204.     (dest docdir)
  205.     (infos)
  206. )
  207.  
  208. ;*** Rexx scripts
  209.  
  210. (set rexxdir
  211.     (tackon
  212.         (askdir
  213.             (prompt #select-destrexx)
  214.             (help @askdir-help)
  215.             (default "REXX:")
  216.             (newpath)
  217.         )
  218.         "Xtruder"
  219.     )
  220. )
  221.  
  222. (copyfiles
  223.     (prompt #copying-rexxscripts)
  224.     (source "Rexx")
  225.     (pattern "#?")
  226.     (dest rexxdir)
  227. )
  228.  
  229. ;*** Install locale file
  230.  
  231. (if (exists "SYS:Locale")
  232. (
  233.     (if (exists "LOCALE:")
  234.     (
  235.         (set lang (askoptions (prompt #select-language)
  236.                                 (help #which-language-help)
  237.                                 (choices
  238.                                     "Svenska"
  239.                                     "English")
  240.                                 (default default_lang)
  241.                     )
  242.         )
  243.         
  244.         (set n 0)
  245.         (while
  246.             (set language (select n
  247.                                 "svenska"
  248.                                 "")
  249.             )
  250.         (
  251.             (if (IN lang n)
  252.             (
  253.                 (if (< n 2)
  254.                 (
  255.                     (makedir (cat "LOCALE:Catalogs/" language))
  256.                     (copyfiles (source (cat "Catalogs/" language))
  257.                                 (dest (cat "LOCALE:Catalogs/" language))
  258.                                 (all)
  259.                     )
  260.                 ))
  261.             ))
  262.             (set n (+ n 1))
  263.         ))
  264.     ))
  265. ))
  266.  
  267. (exit "Please reboot or flush your memory. Some older versions of the installed libraries might be present in memory."
  268. )
  269.